﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;

namespace Core
{
    public static class LineTemplates
    {
        public static Regex ParseAscii;
        public static Regex DeliveringMessage;
        public static Regex CreatingSession;
        public static Regex ProtocolMessage;

        static LineTemplates()
        {
            ParseAscii = new Regex(@"_ParseASCII", RegexOptions.Compiled);
            DeliveringMessage = new Regex(@"Delivering message\.\.\.", RegexOptions.Compiled);
            CreatingSession = new Regex(@"Creating session (?<SessionId>[\d]+)", RegexOptions.Compiled);
            ProtocolMessage = new Regex(@"^(?<SentOrReceived>SENT|RECEIVED): ((?<StatusCode>[\d]{3}) )?(?<Command>.*)$", RegexOptions.Compiled);
        }
    }
}
